package com.wt.service.impl;

import com.wt.mapper.UserMapper;
import com.wt.pojo.User;
import com.wt.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> findUsers() {
        System.out.println("---------------impl-------------");
        System.out.println("userMapper="+userMapper);
        return userMapper.findUsers();
    }
}
